package com.songshuai.sales.tool.dto.request.sop;

import com.songshuai.sales.tool.util.Util;
import lombok.Data;

import java.util.Date;

@Data
public class SopStatusSetReqDto {

    /** 状态
     * 1：发布
     * 2：上下架
     * 3: 审核
     * 4: 置顶
     */

     private String sopId;

     //发布
     private Integer isPublish;

     //发布时间
     private String publishTime;

    //置顶
    private Integer isTop;

    //置顶开始时间
    private Date topStartTime;

    //置顶结束时间
    private String topEndTime;

    //发布人
    private String publishByName;

     //上下架
     private Integer isUp;

    //审核
    private Integer isVerify;

    //更新人
    private String updateBy;

    //更新时间
    private Date updateTime;


    public Date getPublishTime() {
        return Util.ChangeStringToDate(publishTime,"yyyy-MM-dd HH:mm:ss");
    }

    public Date getTopEndTime() {
        return Util.ChangeStringToDate(topEndTime,"yyyy-MM-dd HH:mm:ss");
    }
}
